package com.stars.entity.dto.system;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.stars.common.annotation.Dict;
import com.stars.common.base.dto.BaseAppDto;
import com.stars.entity.sys.SystemPermission;
import com.stars.entity.sys.SystemUser;
import lombok.Data;

import java.util.List;
/**
 * @Title: 角色表、角色管理表实体
 * @author dj
 * @date 2019-10-14 19:52:12
 * @version V1.0
 *
 */
@ExcelTarget("20")
@Data
public class SysRoleDTO extends BaseAppDto{
	/**角色名称*/
	@Excel(name = "角色名称")
	private String roleName;
	/**角色类型*/
	private String roleType;
	@Excel(name = "角色类型")
	@Dict(dictCode = "role_type",dictSource = "roleType")
	private String roleTypeName;
	/**
	 * 用户id
	 */
	private List<SystemUser> systemUsers;
	/**
	 * 角色拥有资源
	 */
	private List<SystemPermission> systemPermissions;


}